package com.wg.msuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;

@Data
@TableName("user")
@NoArgsConstructor // 无参构造
@AllArgsConstructor // 有参构造
@Schema(description = "用户表")
public class User {
    @Schema(description = "用户编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @TableField("pwd")
    @Schema(description = "密码")
    private String pwd;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "昵称")
    private String nc;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "性别")
    private String sex;
    @Schema(description = "注册时间")
    private String createTime;
    @Schema(description = "账号状态")
    private String status;
    @Schema(description = "店铺数量")
    private Integer shopCount;

    @Schema(description = "所在地")
    private String location;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "真名")
    private String zm;
}
